/**************************************************************************
***  tvm_error.h
***  this is the file that contains error code definition of TVM - Testify
***  Virtual Machine
***
***	anyone or any organization can redistribute or modify this file for  
***    any purposes as long as you keep this statement and the copyright
***	statement.
***    
***  @author Tata @date 2008/12/31 Copyright(C) 2009 - Tata
**************************************************************************/

#ifndef _TVM_ERROR_H_
#define _TVM_ERROR_H_

/*TVM error codes*/
#define TVM_ERROR_OK												0		/*@no error*/
#define TVM_ERROR_INVALID_ARGUMENT				1		/*@invalid argument: possibly null pointer*/
#define TVM_ERROR_CHECK_SUM_FAIL					2		/*@check sum fail: failed check sum, which means invalid file*/
#define TVM_ERROR_INVALID_INSTRUCTION		3		/*@invalid instruction: possibly damaged tata file*/
#define TVM_ERROR_CODE_SIZE_TOO_SMALL	4		/*@code size too small: possibly truncated tata file*/
#define TVM_ERROR_VERSION_MISMATCH			5		/*@TVM version mismatch*/
#define TVM_ERROR_INVALID_CODE_SIZE			6		/*@invalid code size: possibly damaged tata file*/
#define TVM_ERROR_LOG_MSG_OVERFLOW		7		/*@log message size overflow*/
#define TVM_ERROR_INVALID_ASCII_CODE			8		/*@invalid ASCII code*/
#define TVM_INVALID_INST_ADDR								9		/*@invalid instruction address*/
#define TVM_ERROR_INVALID_JUMP_INST				10	/*@invalid jump instruction*/
#define TVM_ERROR_BAD_CHECK_SUM					11	/*@bad check sum: possibly truncated tata file*/
#define TVM_ERROR_BAD_COMMAND						12	/*@bad command*/



#endif/*_TVM_ERROR_H_*/
